package com.hc.acoustics.bean.domain;

import com.hc.acoustics.bean.contact.MainType;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import androidx.annotation.IntDef;

/**
 * 图片的信息
 */
public class ShowImageBean {
    @IntDef({State.LONG_IMG, State.SHORT_IMG})
    @Retention(RetentionPolicy.SOURCE)
    public @interface State {
        int LONG_IMG = 0;
        int SHORT_IMG = 1;
    }

    @State
    private int imgType = State.SHORT_IMG;
    /**
     * 是否是网络图片
     */
    private boolean isNet = false;
    private String imgPath;
    private int imgResId;

    public int getImgType() {
        return imgType;
    }

    public void setImgType(int imgType) {
        this.imgType = imgType;
    }

    public boolean isNet() {
        return isNet;
    }

    public void setNet(boolean net) {
        isNet = net;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public int getImgResId() {
        return imgResId;
    }

    public void setImgResId(int imgResId) {
        this.imgResId = imgResId;
    }
}
